home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / blt1.000 / blt1 / blt-1.7-for-STk / Makefile < prev    next >
Encoding:
Makefile  |  1995-02-12  |  2.9 KB  |  97 lines

  1. # Generated automatically from Makefile.in by configure.
  2. #
  3. # Makefile for Stk version of BLT
  4. # Copyright (C) 1993, 1994 Erick Gallesio - I3S - CNRS / UNSA <eg@unice.fr>
  5. # Permission to use, copy, and/or distribute this software and its
  6. # documentation for any purpose and without fee is hereby granted, provided
  7. # that both the above copyright notice and this permission notice appear in
  8. # all copies and derived works.  Fees for distribution or use of this
  9. # software or derived works may only be charged with express written
  10. # permission of the copyright holder.  
  11. # This software is provided ``as is'' without express or implied warranty.
  12. #
  13. #           Author: Erick Gallesio [eg@unice.fr]
  14. #    Creation date: 25-Jul-1994 11:53
  15. # Last file update: 11-Feb-1995 21:58
  16. #
  17.  
  18. BLT        =./blt-1.7
  19. STK        = ..
  20.  
  21. include $(STK)/config.make
  22.  
  23. USING        = -DUSE_TK
  24. CFLAGS        = $(STKCFLAGS) $(USING) $(DYNLOAD) $(DFLGS) $(OPTS)  -DHAVE_UNISTD_H=1 \
  25.           -I. -I $(STK)/Src -I$(STK)/Tk -I$(STK)/Tcl -I$(STK)/Mp \
  26.            $(XINCLUDES) -DSTK_LIBRARY=\"$(libdir)\"
  27. INSTALL        = cp
  28.  
  29. # Shared objects
  30. SOBJ= so/bltGraph.o so/bltGrAxis.o so/bltGrBar.o so/bltGrElem.o \
  31.       so/bltGrHairs.o so/bltGrLegd.o so/bltGrLine.o so/bltGrMisc.o\
  32.       so/bltGrPS.o so/bltGrTag.o so/bltCutbuffer.o so/bltBell.o \
  33.       so/bltBitmap.o so/bltBusy.o so/bltDragDrop.o so/bltHtext.o \
  34.       so/bltList.o so/bltTable.o  so/bltUtil.o so/bltWin.o
  35.  
  36. # Objects
  37. OBJ=  o/bltGraph.o o/bltGrAxis.o o/bltGrBar.o o/bltGrElem.o \
  38.       o/bltGrHairs.o o/bltGrLegd.o o/bltGrLine.o o/bltGrMisc.o\
  39.       o/bltGrPS.o o/bltGrTag.o o/bltCutbuffer.o o/bltBell.o \
  40.       o/bltBitmap.o o/bltBusy.o o/bltDragDrop.o o/bltHtext.o \
  41.       o/bltList.o o/bltTable.o  o/bltUtil.o o/bltWin.o
  42.  
  43. TKLIB        = $(STK)/Tk/libtk.a
  44. TCLLIB        = $(STK)/Tcl/libtcl.a 
  45. MPLIB        = $(STK)/Mp/$(MP).a
  46. LIBS        =  -lnsl -ldl -lm
  47.  
  48. ALLIBS    = $(MPLIB) $(TKLIB) $(TCLLIB) 
  49.  
  50. what:
  51.     @echo "You must specify 'static' or 'dynamic' for make"
  52.  
  53. stk-bin: libstk.a $(ALLIBS)
  54.     /bin/rm -f stk-bin
  55.     $(CC) $(CFLAGS) -o stk-bin userinit.c libstk.a $(ALLIBS) $(XLIBSW) $(LIBS)
  56.  
  57. ##############
  58.  
  59. static: libblt.a 
  60.     /bin/rm -f stk-bin
  61.     $(CC) $(CFLAGS) -o stk-bin userinit.c $(STK)/Src/libstk.a libblt.a $(ALLIBS) $(XLIBSW) $(LIBS)
  62.     
  63.  
  64. dynamic: blt.so
  65.  
  66. blt.so: 
  67.     @echo "Make dynamic version"
  68.     (cd $(BLT); \
  69.      make CC=$(CC) CFLAGS="$(CFLAGS)" \
  70.           SHLIB_CCFLAGS="$(SHLIB_CCFLAGS)" sharedlib)
  71.     $(CC) -c $(SHLIB_CCFLAGS) $(CFLAGS) -o blt.o blt.c
  72.     $(SHLIB_LOADER) $(SHLIB_LDFLAGS) blt.so blt.o $(SOBJ)
  73.     
  74. libblt.a: 
  75.     @echo "Make static version"
  76.     (cd $(BLT); make CC=$(CC) CFLAGS="$(CFLAGS)" normallib)
  77.     $(CC) -c $(CFLAGS) -o blt.o blt.c
  78.     ar rc libblt.a blt.o $(OBJ)
  79.     $(RANLIB) libblt.a
  80.  
  81. install:
  82.     @if test -f blt.so ;then \
  83.        $(INSTALL) blt.so $(execdir); \
  84.     fi
  85.     @if test -f stk-bin; then \
  86.        $(INSTALL) stk-bin $(execdir); \
  87.     fi
  88.     $(INSTALL) blt.stk $(libdir)/STk;
  89.     $(INSTALL) dd-protocol.stk $(libdir)/STk;
  90.     $(INSTALL) dd-protocol.stklos $(libdir)/STk;
  91.  
  92. clean:
  93.     (cd $(BLT); make clean)
  94.     /bin/rm -f blt.o blt.so stk-bin libblt.a *~ core 
  95.